package com.woniuxy.goods.mapper;

import com.woniuxy.comments.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Liu Tao
 * @Date 2023 05 15 15 57
 **/
@Mapper
public interface GoodsMapper {
    List<Goods> findAll();

    Goods findById(int id);

    boolean updateByState(@Param("id") int id, @Param("state")int state);

    boolean add(Goods goods);

    boolean update(Goods goods);
}
